package fy.mdm.dao;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class MaterialRequestNoTimerTask {
	public static int requestNo;

	@Scheduled(cron = "0 0 0 ? * *") // 每天凌晨执行一次重置序列号
	public void resetNo() throws Exception {
		requestNo = 0;
	}
}
